package com.ibeetl.admin.api.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.ibeetl.admin.core.annotation.Dict;
import com.ibeetl.admin.core.entity.BaseEntity;
import com.ibeetl.admin.core.util.ValidateConfig;
import lombok.Data;
import org.beetl.sql.annotation.entity.AutoID;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * 路线
 */
@Data
public class Travel_map_path extends BaseEntity {
    @NotNull(message = "ID不能为空", groups = ValidateConfig.UPDATE.class)
    @AutoID
    private Long pathId;
    //坐标
    @NotNull(message = "坐标不能为空", groups = ValidateConfig.ADD.class)
//    @Dict(defaultDisplay = "116.410829,39.881913")
    private String longitudeLatitude;
    @NotNull(message = "景点编号不能为空", groups = ValidateConfig.ADD.class)
    @NotNull(message = "景点编号不能为空", groups = ValidateConfig.UPDATE.class)
    private Long attractionId;
    private float order;
    private int state;
    private int type;
    private Date updateDt;
    private Date createDt;
    private Long attsId;//返回前端
    private String attsName;//返回前端

}
